﻿@model Home.Site.Models.Account.LoginModel
@{
    ViewBag.Title = ViewBag.Message;
}

<section id="loginForm">
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <ol class="unstyled">
            <li>
                @Html.LabelFor(m => m.UserName,"Имя пользователя")
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </li>
            <li>
                @Html.LabelFor(m => m.Password,"Пароль")
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </li>
            <li>
                @Html.CheckBoxFor(m => m.RememberMe,"Запомнить?")
                @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox inline" })
            </li>
        </ol>
        <input type="submit" class="btn btn-success" value="Войти" />
    </fieldset>
    <br/>
    <p>
        @Html.ActionLink("Зарегистрироваться", "Register") если у вас нет аккаунта.
    </p>
}
</section>

<section class="social" id="socialLoginForm">
    @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
</section>

@section Scripts {
    @Scripts.Render("~/jqueryval")
}
